class Dog:
    def __init__(self, name, breed):
        self.name = name
        self.breed = breed

    def bark(self):
        print(f"{self.name} says: Woof!")

class Owner:
    def __init__(self, name):
        self.name = name
        self.dog = None

    def adopt_dog(self, dog):
        self.dog = dog
        print(f"{self.name} has adopted {self.dog.name}.")

    def make_dog_bark(self):
        if self.dog:
            self.dog.bark()
        else:
            print("No dog to bark!")

# 创建一个狗和一个主人
fido = Dog("Fido", "Labrador")
jane = Owner("Jane")

# 主人领养狗
jane.adopt_dog(fido)

# 让狗叫
jane.make_dog_bark()